import {MessageInstance} from "antd/es/message/interface";
import {create} from "zustand";

interface IMessageApiStore {
    messageApi: MessageInstance,
    setMessageApi: (messageApi: MessageInstance) => void
}
export const useMessageApiStore = create<IMessageApiStore>((set) => ({
    messageApi: null,
    setMessageApi: (messageApi: MessageInstance) => set({messageApi: messageApi})
}))